home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 137
/
137.d81
/
ps plot source
< prev
next >
Wrap
Text File
|
2022-08-26
|
2KB
|
231 lines
open =$ffc0
readst =$ffb7
setlfs =$ffba
setnam =$ffbd
load =$ffd5
getin =$ffe4
clrchn =$ffcc
close =$ffc3 ;a
chrin =$ffcf
chkout =$ffc9 ;x
chkin =$ffc6 ;x
plot =$fff0
chrout =$ffd2
color'pointer =243
screen'line'pointer =209
print'number =$bdcd ;x,a
clear'line =59903
background =53281
border =53280
unlisten =$ffae
clall =$ffe7
low =247
high =248
temp =249
avar =251
cvar =253
nvar =$22
lvar =$14
ivar =$15
jvar =167
kvar =168
.org $9600
.obj "@0:board.ml"
;mem
jsr get'number
sty 753 ;ps location
sta 754
jsr get'number
sty 752;bitmap
jsr get'number;x
sty 750
jsr get'number;y
sty 751
sei
lda #74
sta 1
lda #0
sta nvar
sta nvar+1
sta lvar
sta ivar
l904 lda #0
sta jvar
l906 lda #0
sta kvar
long'line jsr zero'temp
lda 752
sta high;rem placing low byte in high mults by 256
lda #0
sta low
jsr add'temp;add result to temp
lda 750
sta low
lda #0
sta high
asl low;mult 8
rol high
asl low
rol high
asl low
rol high
jsr add'temp
lda 751
sta low
lda #0
asl low
rol high
asl low
rol high
asl low
rol high
asl low
rol high
asl low
rol high
asl low
rol high
lda #0
clc
adc low
sta low
lda 751
adc high
sta high
jsr add'temp
lda jvar
clc
adc temp
sta temp
lda #0
adc temp+1
sta temp+1
lda kvar
sta low
lda #0
sta high
asl low
rol high
asl low
rol high
asl low
rol high
jsr add'temp
lda ivar
sta low
lda #0
sta high
asl low
rol high
asl low
rol high
asl low
rol high
asl low
rol high
asl low
rol high
asl low
rol high
lda #0
adc low
sta low
lda ivar
adc high
sta high
jsr add'temp
lda temp
sta avar
lda temp+1
sta avar+1
jsr zero'temp
lda 753
sta low
lda 754
sta high
jsr add'temp
lda nvar
clc
adc temp
sta cvar
lda nvar+1
adc temp+1
sta cvar+1
jsr zero'temp
ldy #0
lda (cvar),y
sta (avar),y
inc nvar
bne +
inc nvar+1
+ inc kvar
lda kvar
cmp #11
bcs +
jmp long'line
+ inc jvar
inc lvar
lda lvar
cmp #52
bcs done
lda jvar
cmp #8
bcs +
jmp l906
+ inc ivar
jmp l904
done lda #$77
sta 1
cli
rts
add'temp lda low
clc
adc temp
sta temp
lda high
adc temp+1
sta temp+1
rts
zero'temp lda #0
sta temp
sta temp+1
rts
;**** get number from BASIC ****
get'number jsr $aefd
jsr $ad8a
jmp $b7f7